package com.corpdata.system.log.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.corpdata.common.domain.DataGridRequestDTO;
import com.corpdata.system.log.service.OptLogService;

@Controller
@RequestMapping("/app/log")
public class LogController {

	@Autowired
	private OptLogService optLogService;
	
	@GetMapping("list")
	public String list() {
		return "app/log/log_list";
	}
	
	@GetMapping("findOptLog")
	@ResponseBody
	public String findOptLog(DataGridRequestDTO dgRequest) {
		return optLogService.findOptLog(dgRequest);
	}
	
}
